wayland: Thaw the clock if we hide a GdkWindow mid-frame
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 25 Feb 2015 13:46:54 +0000 (14:46 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 2 Mar 2015 11:11:59 +0000 (12:11 +0100)
commitc55fcd35fe4e346ee35a85b925b07981057bb98e
tree6da34da2cc1a5018940504aa764f468e10fe6617
parent13e22e20300b7312e52bba7d077fc7e231695fc1
wayland: Thaw the clock if we hide a GdkWindow mid-frame

When a window is hidden, its surface and all its roles are destroyed,
if this happens when we already issued a wl_surface_commit and are
awaiting for a frame callback, the clock will remain frozen for the
next time the window is shown.

To avoid this, keep track of the wl_surface_frame() calls issued,
and ensure the clock is thawed after hiding. If we happen to receive
the frame callback, it is just ignored.

https://bugzilla.gnome.org/show_bug.cgi?id=743427
gdk/wayland/gdkwindow-wayland.c